package com.banhujiu.spider.region.enties

import com.banhujiu.spider.region.enums.AreaLevelEnum

/**
 * @author banhujiu
 * @date 2017/11/23 0023 10:04
 */
class JSEntry(val url: String, val level: AreaLevelEnum) {
    var errorCount: Int = 0
    var pRegionEntry: RegionEntry = RegionEntry()

    constructor(jsEntry: JSEntry) : this(jsEntry.url, jsEntry.level) {
        this.errorCount = jsEntry.errorCount + 1
    }

    constructor(url: String, level: AreaLevelEnum, pRegionEntry: RegionEntry) : this(url, level) {
        this.pRegionEntry = pRegionEntry
    }
}
